<%--
  Created by IntelliJ IDEA.
  User: JIAHANG
  Date: 2023/1/29
  Time: 10:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<html>--%>
<%--  <head>--%>
<%--    <title>$Title$</title>--%>
<%--  </head>--%>
<%--  <body>--%>
<%--  $END$--%>
<%--  <form action="HelloServlet" method="POST">--%>
<%--    名字：<input type="text" name="first_name">--%>
<%--    <br />--%>
<%--    姓氏：<input type="text" name="last_name" />--%>
<%--    <input type="submit" value="提交" />--%>
<%--    <input type="submit" value="转到LIST" formaction="JdbcServlet" method="POST" />--%>
<%--  </form>--%>
<%--  </body>--%>
<%--</html>--%>
<!DOCTYPE html>
<html>
<head>
  <title>登录页</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="keywords" content="Internship Sign In & Sign Up Form Responsive Widget,Login form widgets, Sign up Web forms , Login signup Responsive web form,Flat Pricing table,Flat Drop downs,Registration Forms,News letter Forms,Elements" />
  <script type="application/x-javascript">
    addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
    function hideURLbar(){ window.scrollTo(0,1); };
  </script>
  <script type="text/javascript" src="js/messager.js"></script>
  <!-- Custom Theme files -->
  <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
  <link href="css/snow.css" rel="stylesheet" type="text/css" media="all" />
  <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />

</head>
<body>
<div class="snow-container">
  <div class="snow foreground"></div>
  <div class="snow foreground layered"></div>
  <div class="snow middleground"></div>
  <div class="snow middleground layered"></div>
  <div class="snow background"></div>
  <div class="snow background layered"></div>
</div>

<div class="top-buttons-agileinfo">
  <a href="index.html"  class="active">登录</a><a href="signup.jsp">注册</a>
</div>
<h1>实习登录
</h1>
<div class="main-agileits">
  <!--form-stars-here-->
  <div class="form-w3-agile">
    <h2 class="sub-agileits-w3layouts">登录</h2>
    <form action="HelloServlet" method="post">
      <input type="text" name="Eamil" placeholder="用户" value="admin"/>

      <input type="password" name="Password" placeholder="密码" value="123456"/>
      <a href="#" class="forgot-w3layouts">忘记密码 ?</a>
      <div class="submit-w3l">
        <input type="submit" value="登录">
      </div>
      <p class="p-bottom-w3ls"><a href="signup.jsp">点击注册</a>如果你没有一个帐户。
        .</p>
    </form>
    <%
      String Msg =(String)  request.getAttribute("Msg");
      if(Msg != null){
    %>
    <script type="text/javascript">
      const msg = "<%=Msg%>";
      displayAlert("error",msg,2000);

    </script>
    <%
      }
    %>
  </div>
</div>
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>


</body>

</html>